home *** CD-ROM | disk | FTP | other *** search
- /* arexx Script */
-
- options results
- parse ARG Port b
-
- ADDRESS value Port
-
- pp_GetDepth
- D=result
- IF D<24 then DO
- pp_Warn 'This*script*is*only|for*24bits*Picture.'
- pp_PermitRefresh
- Exit
- END
-
- pp_GetWidth
- w=result
- pp_GetHeight
- h=result
-
- pp_CountFrames
- count=result
- IF count<2 then DO
- pp_Warn 'Make*an*Anim*first.'
- pp_PermitRefresh
- EXIT
- END
-
- depth=5
- pp_DialogInit 150 60 "*Motion*Blur*" 1
- pp_Integer 0 70 8 50 16 "Depth" 1 depth
- pp_Dialog
- rc=result
- IF rc=0 then DO
- EXIT
- END
-
- pp_GetDialog 0
- depth=result
-
-
- pp_GetCurrentBrush
- CB=result
- pp_FindEmptyBrush
- Brush=result
- pp_SetBrush Brush
-
- do i=1 to count
- j=i-depth
- if j<1 then DO
- j=1
- end
- if j<i then do
- pp_gotoframe j
- pp_picttospare
- do jj=j+1 to i
- pp_Gotoframe jj
- pp_Pickbrush 0 0 w h
- pp_Spareonoff
- pp_brushopacity 50
- pp_plot w/2 h/2
- end
- pp_gotoframe i
- pp_SparetoPict
- end
- end
-
- pp_BrushOpacity 100
- pp_FreeBrush
- pp_SetBrush CB
-
- EXIT
-
-
-
-